<%--
  Created by IntelliJ IDEA.
  User: 24646
  Date: 2024/11/18
  Time: 10:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录界面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #e0e7ff;  /* 更柔和的背景色 */
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .login-container {
            background-color: white;
            padding: 40px;  /* 增加内边距 */
            border-radius: 10px;  /* 更圆的边角 */
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);  /* 更深的阴影效果 */
            width: 300px;  /* 固定宽度 */
        }

        h2 {
            text-align: center;
            color: #333;  /* 文字颜色更深一些 */
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            color: #555;
        }

        input {
            width: 100%;
            padding: 10px;  /* 增加输入框的内边距 */
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;  /* 字体大小更大 */
        }

        button {
            width: 100%;
            padding: 12px;  /* 更好的按钮内边距 */
            background-color: #007bff;  /* 蓝色背景 */
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;  /* 背景色过渡效果 */
        }

        button:hover {
            background-color: #0056b3;  /* 悬停效果颜色 */
        }
    </style>
</head>

<body>
<div class="login-container">
    <h2>登录</h2>
    <form action="${pageContext.request.contextPath}/login/toLog" method="post">
        <div class="form-group">
            <label for="username">用户名:</label>
            <input type="text" id="username" name = "username" required>
        </div>
        <div class="form-group">
            <label for="password">密码:</label>
            <input type="password" id="password" name = "password" required>
        </div>
        <button type="submit">登录</button>
    </form>
</div>
</body>

</html>